<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!-- esapi4js dependencies -->
<!-- <script type="text/javascript" language="JavaScript" src="scripts/esapi/lib/log4js.js"></script> -->
<!-- esapi4js i18n resources -->
<script type="text/javascript" language="JavaScript" src="rp/scripts/esapi/resources/i18n/ESAPI_Standard_en_US.properties.js"></script>
<!-- esapi4js core -->
<script type="text/javascript" language="JavaScript" src="rp/scripts/esapi/esapi.js"></script>
<!-- esapi4js configuration -->
<script type="text/javascript" language="JavaScript" src="rp/scripts/esapi/resources/Base.esapi.properties.js"></script>


<script type="text/javascript">
    // Set any custom configuration options here or in an external js file that gets sourced in above.
    /*Base.esapi.properties.logging['ApplicationLogger'] = {
        Level: org.owasp.esapi.Logger.ALL,
        Appenders: [ new Log4js.ConsoleAppender() ],
        LogUrl: true,
        LogApplicationName: true,
        EncodingRequired: true
    };*/
    
    $(function(){
    	// Initialize the api
	    org.owasp.esapi.ESAPI.initialize();
	
	    // Using the logger
	    //$ESAPI.logger().getLogger('ApplicationLogger').info(org.owasp.esapi.Logger.EventType.EVENT_SUCCESS, 'This is a test message');
	
	    // Using the encoder
	    
	    //document.writeln( $ESAPI.encoder().encodeForHTML( "<a href=\"http://owasp-esapi-js.googlecode.com\">Check out esapi4js</a>" ) );
		
    });

    
</script>
